package com.caihappy.service.impl;

import com.caihappy.pojo.User;
import com.caihappy.service.IUserService;
import com.springmvc.annotation.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by DELL on 2022/4/2
 **/
@Service
public class UserServiceImpl implements IUserService {
    @Override
    public List<User> findUsers(String username) {
        System.out.println("查询的参数: "+username);
        ArrayList<User> users = new ArrayList<>();
        users.add(new User(1, "老王1", "123"));
        users.add(new User(2, "老王2", "123"));
        users.add(new User(3, "老王3", "123"));
        users.add(new User(4, "老王4", "123"));
        users.add(new User(5, "老王5", "123"));
        return users;
    }

    @Override
    public String getUserMessage(String name) {
        return "我是getUserMessage方法,"+name;
    }
}
